package com.shanshan.system.service.impl;

import com.shanshan.system.entity.NewsKind;
import com.shanshan.system.mapper.NewsKindMapper;
import com.shanshan.system.service.INewsKindService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shanshan.system.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author shanshan
 * @since 2023-01-31
 */
@Service
@SuppressWarnings("all")
public class NewsKindServiceImpl extends ServiceImpl<NewsKindMapper, NewsKind> implements INewsKindService {
    @Autowired
    private NewsKindMapper newsKindMapper;
    @Override
    public Result newsKindAll() {
        List<NewsKind> list = newsKindMapper.selectList(null);
        return new Result(200,"查询成功",list);
    }
}
